home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / hours15.zip / DOWN_NOR.BAT < prev    next >
DOS Batch File  |  1990-10-01  |  801b  |  43 lines

  1. @echo off
  2. c:
  3. \norton\be down.be
  4. if errorlevel=2 goto cancel
  5. if not errorlevel=1 goto cancel
  6. cd \norton
  7. cls
  8. echo  
  9. \tools\HOURS OFF c:\tools\
  10. echo  
  11. echo  
  12. if errorlevel = 4 goto error4
  13. if errorlevel = 3 goto error3
  14. if errorlevel = 2 goto error2
  15. if errorlevel = 1 goto error1
  16. be ask "    Park your harddisk(s) ? (y/n) ",yn,default=y,timeout=5
  17. echo  
  18. if errorlevel = 2 goto down
  19. park.com
  20. :down
  21. echo  
  22. echo        Please turn the computer off.
  23. :End
  24. goto End
  25.  
  26. :error1
  27. echo Wrong date in the 'hours.dat' file.
  28. goto cancel2
  29. :error2
  30. echo Invalid parameter for HOURS.EXE.
  31. goto cancel2
  32. :error3
  33. echo Status 'a' instead of 'l' in the 'hours.dat' file.
  34. goto cancel2
  35. :error4
  36. echo Status is neither 'a' nor 'l' in the 'BtrStd.dat' file.
  37. goto cancel2
  38.  
  39. :cancel
  40. cls
  41.  
  42. :cancel2
  43.